package com.javafive;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class Demo2 {
    //
    public static void main(String[] args) throws Exception {
        File file = new File("");
        String path="E:\\webWork\\javaKh62Demo\\src\\com\\javafive\\txt\\1.txt";
        //构造输入流的实例
        InputStream inputStream = new FileInputStream(path);
        int count=0;
        while ((count=inputStream.read()) !=-1){
            System.out.print((char)count);
        }
        inputStream.close();
    }
}
